package com.tianyu.jty.system.entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 系统配置项 entity
 * @author lusen
 * @date 2017年12月23日
 */
@Entity
@Table(name = "system_config")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
@DynamicUpdate @DynamicInsert
public class SystemConfig implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	private String configName;
	private String configValue;
	private String description;
	// Constructors

	/** default constructor */
	public SystemConfig() {
	}

	@Id
	@Column(name = "CONFIG_NAME")
	public String getConfigName() {
		return configName;
	}

	public void setConfigName(String configName) {
		this.configName = configName;
	}

	@Column(name = "CONFIG_VALUE")
	public String getConfigValue() {
		return configValue;
	}

	public void setConfigValue(String configValue) {
		this.configValue = configValue;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}